package com.term.util.init;

import org.thymeleaf.spring4.view.ThymeleafViewResolver;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by chenGang on 2017/1/18.
 * thymeleaf全局变量设置
 */
public class ThymeleafInitializer extends ThymeleafViewResolver {
    public ThymeleafInitializer() {
        super();
        init();
    }
    private void init() {
        Map<String, Object> variables = new HashMap<String, Object>();
        variables.put("mobile", 123456789);
        setStaticVariables(variables);
    }
}
